#ifndef _COMIDA__H
#define _COMIDA__H

#include <GL/glut.h>
#include <stdlib.h>

#include "BasicElement.h"
#include "time.h"

namespace gameCG {

	class Comida : public BasicElement {
		public:
			Comida();
			void draw();
			void update(int delta);
			void changeDirection();
			void increaseSpeed();
			void resetSpeed();
			void consume();
			float getX();
			float getZ();
			
		private:
			GLfloat specular[4];
			GLfloat shininess[1];
			int direction;
			float speed;
			float x;
			float z;
			int counter;
			int limite;
	};

}

#endif
